package com.yami.shop.bean.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 浏览用户记录
 * </p>
 *
 * @author chajiu
 * @since 2021-06-30
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("ch_view_user_record")
@ApiModel(value="ViewUserRecord对象", description="浏览用户记录")
public class ViewUserRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户")
    private User user;


    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "谁看的userId")
    private String fromUserId;

    @ApiModelProperty(value = "被看的用户id")
    private String lookedUserId;

    @TableField(exist = false)
    @ApiModelProperty(value = "谁看的用户名称")
    private String fromUserName;

    @TableField(exist = false)
    @ApiModelProperty(value = "谁看的用户头像")
    private String fromUserPic;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "距离")
    private Double distance;

    @ApiModelProperty(value = "是否解锁了该用户，1为已解锁，2为未解锁或解锁已过期")
    private Integer unlStatus;


}
